<?php

class Index extends Controller {
	
	public function main() {
		$result = $this->model->miniaturas();
		$this->view->miniaturas = $result;
		$this->view->title = "SH3 Informática LTDA";
		$this->view->render('index/index');
	}
	
	public function busca() {
		$valor_busca = $_POST['valor'];
		$result = $this->model->busca($valor_busca);
		$this->view->resultados = $result;
		$this->view->render('index/busca');	
	}
}

?>